package com.huidan.cms.core.exception;

/**
 * 通用错误码
 *
 * @Author hui
 * Created by Administrator on 2017/10/24.
 */
public class RetCode {

    /**
     * 成功
     */
    public final static String OK = "0000";

    /**
     * 未知异常
     */
    public final static String FAIL_UNKNOWN = "9999";

    /**
     * 逻辑错误
     */
    public final static String FAIL_LOGIC = "9998";

    /**
     * 参数异常
     */
    public final static String FAIL_PARAM = "9997";

    /**
     * 缓存操作异常
     */
    public final static String FAIL_CACHE = "9996";

    /**
     * 数据操作异常
     */
    public final static String FAIL_DB = "9995";

    /**
     * 远程访问异常
     */
    public final static String FAIL_REMOTE = "9994";

    /**
     * 未登录异常
     */
    public final static String FAIL_UNLOGIN = "9993";

    /**
     * 禁止访问异常
     */
    public final static String FAIL_FORBIDDEN = "9992";
}
